Don't hide flymake diagnostics on empty first line (bug#70310)
authorMattias Engdegård <mattiase@acm.org>
Thu, 11 Apr 2024 11:55:39 +0000 (13:55 +0200)
committerMattias Engdegård <mattiase@acm.org>
Thu, 11 Apr 2024 11:55:39 +0000 (13:55 +0200)
commitb436f430e3897e1aa6dcb5a39564a3553bbf631f
tree8200514dbdd85a4cdd54d3c5b441b9ae76675f09
parentfba8f3a6f1a8a099d93e70400d477ca6fe96007b
Don't hide flymake diagnostics on empty first line (bug#70310)

A diagnostic first in the buffer, typically the lexical cookie warning,
got lost if that line was empty.

* lisp/progmodes/elisp-mode.el (elisp-flymake--byte-compile-done):
Make sure the location interval doesn't go beyond the buffer bounds.
lisp/progmodes/elisp-mode.el